<template>
    <div class="zhangdan-info">
        <panel :title="title" :content="content"></panel>
    </div>
</template>
<script>
import Panel from '../panel'
import { post } from '../../../../util/http.js'
import { Toast } from 'mint-ui'
export default {
    data() {
        return {
            title: {
                name: '出账金额',
                value: '¥503.00'
            },
            content:[{
                 id: 0,
                name: '提现金额',
                value: '¥500.00'
            },{
                id: 1,
                name: '手续费',
                value: '¥3.00'
            },{
                 id: 2,
                name: '提现银行',
                value: '招商银行（1234）'
            },{
                 id: 3,
                name: '当前状态',
                value: '提现驳回'
            },{
                 id: 4,
                name: '提现时间',
                value: '2018-07-30  10:38:27'
            },{
                 id: 5,
                name: '提现单号',
                value: '201807311200002121452555'
            }]
        }
    },
    components: {
        Panel
    },
    mounted() {
        post('http://dlsapi.rz158.com/putForward/detail', {
                id: this.$route.params.id,
            }).then(res => {
                if(res.code == 0) {
                    this.title.value = '￥' + res.t.amount
                    this.content[0].value = '￥' + res.t.amount
                    this.content[1].value = '￥'+ res.t.serviceCharge
                    this.content[2].value = res.t.bankName
                    this.content[3].value = res.t.statusStr
                    this.content[4].value = res.t.dateStr
                    this.content[5].value = res.t.putForwardNo
                    console.log(res)
                } else {
                    Toast({
                        message: res.message,
                        duration: 1000
                    })
                }
            })
    }
}
</script>
<style lang="less" scoped>
.zhangdan-info{
    border-top: 2px solid #cccccc;
    width: 100%;
    background: #efefef;
    height: 100vh;
}
</style>


